<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>To-Do List</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <h1>To-Do List</h1>
        <div class="input-container">
            <input type="text" id="taskInput" placeholder="添加新任务...">
            <button id="addTaskBtn">添加</button>
        </div>
        <ul id="taskList"></ul>
        <div class="footer">
            <span id="completedCount">已完成 0/全部 0</span>
            <button id="clearCompleted">清除已完成任务</button>
            <button id="toggleCompleted">隐藏已完成</button>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>